<?php
namespace backend\models;
use yii\db\ActiveRecord;
/**
 * Created by PhpStorm.
 * User: 张
 * Date: 2015/10/1
 * Time: 8:22
 */
class Articlect extends ActiveRecord{
    static function tableName(){
        return '{{%article_category}}';
    }
    public function rules(){
        return[
            [['name','parent_cid'],'required','on'=>'add'],
            [['name','cid'],'required','on'=>'update'],
        ];
    }
}
?>
